package Pet.Management.domain.vo;

import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;

@Data
@Accessors(chain = true)
public class LoginResponse {
    private Integer code;
    private String msg;
    private String token;
    private UserInfo user;
    private List<String> roles;
    private List<String> permissions;

    @Data
    public static class UserInfo {
        private Long userId;
        private String userName;
        private String nickname;
        private String avatar;
        private String email;
        private String phone;
        private Byte status;
        private Byte isAdmin;
        private String[] roles;
        private String[] permissions;
    }
} 